Repository navigation
Classify the live corpus tree in native storage capture - #613
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Native storage capture now classifies D155's live corpus tree instead of expanding retired snapshot manifests. The original read-only PostgreSQL view supplies recorded
documents.corpus_pathsand served-document inputs. A folder counts as a document copy only when the nullable publication marker matches the current DB-input/default-policy revision and the recorded set is exactly the desired folder.projection_origin/p3_originvocabulary. Canonical raw originals remaincanonical_raw/canonical_object, so corpus copies never inflate canonical-original quantities.projection_snapshotsremains because/operations.latest_projectionsstill reads its historical metadata; it remains a PostgreSQL allocation resource. No migration is needed. Both native helpers require exact current headp9_52_0073, with no old-head fallback.scripts/generate_storage_capture_fixture.py; both new test files are in the CI inventory.No converter, chunker, Selection, Claimify, embedding or text-origin identity changes. Publication metadata remains outside paid-work reuse keys. Public wire purposes/components, API schemas and commercial byte bases are unchanged.
Verification
Review fix verification (
183b0611a): 169 affected unit tests and 91 PostgreSQL/MinIO tests passed. The integration total includes the 13-case live-tree capture matrix, reader selection/export, real MinIO publication, and all 14 native guard/view tests in fresh dedicatedcapture_guard_*databases. The new capture regression publishes a folder with 150 additional page-image assets, asserts every generated index has acorpus.navigationreference, and checks every file in the folder isprojection_originrather than staging. It fails against the previous capture implementation and passes with this fix.Ruff check/format (761 files), Pyright (0 errors/warnings), all 5 import contracts, test inventory and
git diff --checkpass. The live-corpus profile fixture was regenerated through its generator; capture/OpenAPI/TypeScript contracts, client/parity, D143 defaults and docs generation freshness checks pass. Twelve comparisons against the previous renderer cover small and paginated inventories at member limits 32 and 150: paths, bytes and export revisions are identical, so no builder-policy or paid-work reuse boundary changes.Earlier full-PR validation, before this review fix:
All PostgreSQL suites ran sequentially on the requested
localhost:55433/rememberstacktest database, using the running engine PostgreSQL image. Real MinIO tests reused the healthy script-provisioned container at127.0.0.1:59000.NOWAITguard refused rather than producing evidence. Test setup now vacuums migration-created catalog churn before arming cuts; the final 12-case run passes without changing the production guard or retrying an original cut.git diff --checkpasses.The native PostgreSQL sessions and MinIO objects are real. Provider wire in the classification suite is explicitly synthetic; this proves classification and refusal behavior, not deployed FSIT-at-T, production clock/image/cost or commercial enablement.
remember.dev companion integration
No files in
writeitai/ultimate-memory-cloudare changed. When it pins this engine:runtime/engine.lockand rebuild the runtime artifact/image. Regenerate the actual enginenative.source_digest, expectednative.schema_digest,native.schema_profile_digestand native qualification/profile preimages (native.profile_digest) for headp9_52_0073. Include the capture modules, current migration/catalog contract,spine/corpus_export.pyserved selector,core/corpus_export.pybuilder policy/revision/reader registry/original naming,model/conversion.pyasset-name contract and their source dependency closure. Regeneratemanaged_runtime_source_digestand the actual producer identity. The committed engine regression fixture uses synthetic test domains and must not be installed as a deployed profile.NativeCaptureProfiletoruntime/src/umc_runtime/storage_capture_profile.py::managed_capture_profilewith the actual existing deployment/database/four filesystem bindings and qualified provider/clock/run inputs. Let the engine regenerate each Project's classification and operator mapping digests, then register/accept the exact new receiver profiles and request identities. The store-binding digest stays the same when its inputs stay the same; preserve old completed evidence under its original identities.p9_52_0073and reinstall bothinstall_native_relation_guardandinstall_native_capture_catalogunder the existing restricted roles. Requalify actual installed function bytes/owners/search paths/ACLs, native view timing and a nonempty live-tree capture with the real provider before accepting new chargeable evidence. Existing provider/clock/resource bounds change only when their qualification evidence requires it.raw,artifacts,corpus,forgetcapabilities andcapture_storage_batchcall. There is no new store role, callback, corpus manifest reader, scheduler or receiver wire enum. The new included classes map to existingprojection_origin/p3_origin; incomplete/orphan copies map to excludedstaging.The implementation handoff is also recorded in
docs/development/storage-capture-managed-assembly.md.Contributor agreement
Signing on behalf of a legal entity (leave blank if accepting individually):